package com.kgis.map.control.basemaptool {
    import com.kgis.map.Map;
    import com.kgis.map.common.enum.HandlerEnum;
    import com.kgis.map.common.enum.LayerTypeEnum;
    import com.kgis.map.common.enum.MapActionEnum;
    import com.kgis.map.common.util.GMath;
    import com.kgis.map.control.Blackboard;
    import com.kgis.map.events.DrawEvent;
    import com.kgis.map.feature.Feature;
    import com.kgis.map.geometry.basetype.Location;
    import com.kgis.map.handler.feature.SelectFeaturesHandler;
    import com.kgis.map.handler.feature.draw.DrawHandler;
    import com.kgis.map.handler.feature.draw.DrawLineHandler;
    import com.kgis.map.layer.FeatureLayer;
    import com.kgis.map.projection.Projection;
    import com.kgis.map.style.PolylineStyle;

    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.controls.Image;
    import com.kgis.map.control.basemaptool.AbstractBaseMapTool;

    /**
     * 测量距离工具类
     * */
    public class SelectFeaturesControl extends AbstractBaseMapTool {

        private var handler:SelectFeaturesHandler;

        public function SelectFeaturesControl(value:Map) {
            super(value);
        }

        override public function execute():void {
            handler = this._map.getHandler(HandlerEnum.SELECT_FEATURES_HANDLER) as SelectFeaturesHandler;
            handler.active = true;
            map.operateMode = MapActionEnum.MAP_SELECT;
        }


    }
}